package net.icontents.service;

import net.icontents.beans.Article;
import net.icontents.beans.component.ArticleComponent;

public interface ArticleService extends BaseService<Article> {

	/**
	 * 插入一个新的文章页
	 * @param article
	 */
	public int insertArticle(Article article);
	
	/**
	 * 获取文章页信息
	 * @param articleId
	 * @return
	 */
	public Article getArticleById(int articleId);

	/**
	 * 
	 * @param articleId
	 * @param hasExtInfo
	 * @return
	 */
	public Article getArticleById(int articleId,boolean hasExtInfo);
	
	/**
	 * 更新文章页信息
	 * @param article
	 */
	public void updateArticle(Article article);
	
	public ArticleComponent getArticleComponentById(int articleId,int sequence,int position);
}
